package com.resource.manager.ui;

import javax.swing.*;
import java.awt.*;

public class CustTextField extends JTextField {

    public CustTextField(){
        super();
        initTextField();
    }

    public CustTextField (String text){
        super(text);
        initTextField();
    }


    private void initTextField(){
        this.setFont(new java.awt.Font("微软雅黑", Font.PLAIN, 15));
        //设置文本框高度
        this.setPreferredSize(new Dimension(200, 30));
        this.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
    }
}
